//运营管理
import Layout from '@/views/layout/Layout'
import Three from '../../../views/layout/Three'

const operation = {
  path: '/operation',
  name: 'operation',
  key: 'operation',
  component: Layout,
  redirect: '/operation/bannerManage',
  alwaysShow: true,
  meta: {
    title: '运营',
    icon: ''
  },
  children: [
    {
      path: 'bannerManage',
      name: 'bannerManage',
      key: 'bannerManage',
      component: Three,
      redirect: '/operation/bannerManage/appIndex',
      meta: {
        title: '广告位管理',
        icon: ''
      },
      children: [
        {
          path: 'appIndex',
          name: 'appIndexBanner',
          key: 'appIndex',
          component: () => import('@/views/operation/banner/bannerManage/list'),
          meta: {
            title: '首页banner',
            icon: '',
          }
        },
        {
          path: 'appIndexBannerAdd',
          name: 'appIndexBannerAdd',
          key: 'appIndexBannerAdd',
          hidden: true,
          component: () => import('@/views/operation/banner/bannerManage/add'),
          meta: {
            title: '添加',
            icon: '',
          },
        },
        {
          path: 'musicBanner',
          name: 'musicBanner',
          key: 'musicBanner',
          component: () => import('@/views/operation/banner/bannerManage/list'),
          meta: {
            title: '音乐banner',
            icon: '',
          },
        },
        {
          path: 'musicBannerAdd',
          name: 'musicBannerAdd',
          key: 'musicBannerAdd',
          hidden: true,
          component: () => import('@/views/operation/banner/bannerManage/add'),
          meta: {
            title: '添加',
            icon: '',
          },
        },
        {
          path: 'userCenter',
          name: 'appUserCenterBanner',
          key: 'userCenter',
          component: () => import('@/views/operation/banner/bannerManage/list'),
          meta: {
            title: '个人中心banner',
            icon: '',
          }
        },{
          path: 'appUserCenterBannerAdd',
          name: 'appUserCenterBannerAdd',
          key: 'appUserCenterBannerAdd',
          hidden:true,
          component: () => import('@/views/operation/banner/bannerManage/add'),
          meta: {
            title: '个人中心banner',
            icon: '',
          }
        },
        {
          path: 'iconManage',
          name: 'appIndexIcon',
          key: 'iconManage',
          component: () => import('@/views/operation/banner/iconManage/list'),
          meta: {
            title: 'icon管理',
            icon: '',
          }
        },
        {
          path: 'appIndexIconEdit',
          name: 'appIndexIconEdit',
          key: 'appIndexIconEdit',
          component: () => import('@/views/operation/banner/iconManage/edit'),
          meta: {
            title: 'icon',
            icon: '',
          },
          hidden: true
        },
        {
          path: 'indexCourse',
          name: 'courseIndexManage',
          key: 'courseManage',
          component: () => import('@/views/operation/banner/indexCourse/list'),
          meta: {
            title: '首页课程',
            icon: ''
          }
        },
        {
          path: 'edit',
          name: 'indexCourseEdit',
          key: 'courseEdit',
          component: () => import('@/views/operation/banner/indexCourse/edit'),
          meta: {
            title: '课程编辑',
            icon: ''
          },
          hidden: true
        },
        {
          path: 'brandManage',
          name: 'brandManage',
          key: 'brandManage',
          component: () => import('@/views/operation/banner/brandManage/list'),
          meta: {
            title: '品牌宣传',
            icon: ''
          }
        },
        {
          path: 'brandAdd',
          name: 'brandAdd',
          key: 'brandAdd',
          component: () => import('@/views/operation/banner/brandManage/add'),
          meta: {
            title: '品牌宣传编辑',
            icon: ''
          },
          hidden: true
        },
        {
          path: 'teacherManage',
          name: 'teacherManage',
          key: 'teacherManage',
          component: () => import('@/views/operation//banner/teacherManage/list'),
          meta: {
            title: '老师简介',
            icon: ''
          }
        },
        {
          path: 'teacherAdd',
          name: 'teacherAdd',
          key: 'teacherAdd',
          component: () => import('@/views/operation/banner/teacherManage/add'),
          meta: {
            title: '老师添加',
            icon: ''
          },
          hidden: true
        },
        {
          path: 'openADManage',
          name: 'openADManage',
          key: 'openADManage',
          component: () => import('@/views/operation/banner/openADManage/list'),
          meta: {
            title: '开屏广告',
            icon: ''
          }
        },
        {
          path: 'openADAdd',
          name: 'openADAdd',
          key: 'openADAdd',
          component: () => import('@/views/operation/banner/openADManage/add'),
          meta: {
            title: '开屏广告添加',
            icon: ''
          },
          hidden: true
        }
      ]
    },
    {
      path: 'goodsManage',
      name: 'goodsOperationManage',
      key: 'goodsOperationManage',
      component: Three,
      redirect: '/operation/goodsManage/mallBanner',
      meta: {
        title: '商城管理',
        icon: ''
      },
      children: [
        {
          path: 'mallBanner',
          name: 'mallBanner',
          key: 'mallBanner',
          component: () => import('@/views/operation/banner/bannerManage/list'),
          meta: {
            title: '商城banner',
            icon: '',
          }
        },
        {
          path: 'mallBannerAdd',
          name: 'mallBannerAdd',
          key: 'mallBannerAdd',
          hidden: true,
          component: () => import('@/views/operation/banner/bannerManage/add'),
          meta: {
            title: '商城banner',
            icon: '',
          },
        },{
          path: 'mallIcon',
          name: 'mallIcon',
          key: 'mallIcon',
          component: () => import('@/views/operation/banner/iconManage/list'),
          meta: {
            title: '商城icon管理',
            icon: '',
          },
        },{
          path: 'mallIconAdd',
          name: 'mallIconAdd',
          key: 'mallIconAdd',
          hidden:true,
          component: () => import('@/views/operation/banner/iconManage/edit'),
          meta: {
            title: '商城icon添加',
            icon: '',
          },
        },{
          path: 'mallIconEdit',
          name: 'mallIconEdit',
          key: 'mallIconEdit',
          hidden:true,
          component: () => import('@/views/operation/banner/iconManage/edit'),
          meta: {
            title: '商城icon编辑',
            icon: '',
          },
        },  {
          path: 'mallRecommend',
          name: 'mallRecommend',
          key: 'mallRecommend',
          component: () => import('@/views/operation/goodsManage/recommendManage/list'),
          meta: {
            title: '商城推荐位管理',
            icon: '',
          },
        },{
          path: 'mallRecommendAdd',
          name: 'mallRecommendAdd',
          key: 'mallRecommendAdd',
          hidden:true,
          component: () => import('@/views/operation/goodsManage/recommendManage/add'),
          meta: {
            title: '推荐位添加',
            icon: '',
          },
        },{
          path: 'mallRecommendEdit',
          name: 'mallRecommendEdit',
          key: 'mallRecommendEdit',
          hidden:true,
          component: () => import('@/views/operation/goodsManage/recommendManage/add'),
          meta: {
            title: '推荐位编辑',
            icon: '',
          },
        },{
          path: 'mallSubject',
          name: 'mallSubject',
          key: 'mallSubject',
          component: ()=>import('@/views/operation/goodsManage/mallSubject/list'),
          meta: {
            title: '商城专题管理',
            icon: '',
          },
        },{
          path: 'mallSubjectEdit',
          name: 'mallSubjectEdit',
          key: 'mallSubjectEdit',
          hidden:true,
          component: ()=>import('@/views/operation/goodsManage/mallSubject/edit'),
          meta: {
            title: '商城专题',
            icon: '',
          },
        },{
          path: 'mallHotWords',
          name: 'mallHotWords',
          key: 'mallHotWords',
          component: ()=>import('@/views/operation/goodsManage/mallHotWords/list'),
          meta: {
            title: '热搜词管理',
            icon: '',
          },
        },{
          path: 'mallHotWordsAdd',
          name: 'mallHotWordsAdd',
          key: 'mallHotWordsAdd',
          hidden:true,
          component: ()=>import('@/views/operation/goodsManage/mallHotWords/edit'),
          meta: {
            title: '热搜词添加',
            icon: '',
          },
        },{
          path: 'mallHotWordsEdit',
          name: 'mallHotWordsEdit',
          key: 'mallHotWordsEdit',
          hidden:true,
          component: ()=>import('@/views/operation/goodsManage/mallHotWords/edit'),
          meta: {
            title: '热搜词编辑',
            icon: '',
          },
        },{
          path: 'hotSearchHistory',
          name: 'hotSearchHistory',
          key: 'hotSearchHistory',
          hidden:true,
          component: ()=>import('@/views/operation/goodsManage/mallHotWords/historyList'),
          meta: {
            title: '历史热搜榜',
            icon: '',
          },
        }
      ]
    },
    {
      path: 'weappManage',
      name: 'weappOperationManage',
      key: 'weappOperationManage',
      component: Three,
      redirect: '/operation/weappManage/weappBanner',
      meta: {
        title: '小程序管理',
        icon: ''
      },
      children: [
        {
          path: 'weappIndexBanner',
          name: 'weappIndexBanner',
          key: 'weappIndexBanner',
          component: () => import('@/views/operation/banner/bannerManage/list'),
          meta: {
            title: '首页banner',
            icon: '',
          },
        },{
          path: 'weappIndexBannerAdd',
          name: 'weappIndexBannerAdd',
          key: 'weappIndexBannerAdd',
          hidden:true,
          component: () => import('@/views/operation/banner/bannerManage/add'),
          meta: {
            title: '首页banner',
            icon: '',
          },
        },{
          path: 'weappUserCenterBanner',
          name: 'weappUserCenterBanner',
          key: 'weappUserCenterBanner',
          component: () => import('@/views/operation/banner/bannerManage/list'),
          meta: {
            title: '个人中心banner',
            icon: '',
          },
        },{
          path: 'weappUserCenterBannerAdd',
          name: 'weappUserCenterBannerAdd',
          key: 'weappUserCenterBannerAdd',
          hidden:true,
          component: () => import('@/views/operation/banner/bannerManage/add'),
          meta: {
            title: '个人中心banner',
            icon: '',
          },
        },{
          path: 'weappIconManage',
          name: 'weappIcon',
          key: 'weappIconManage',
          component: () => import('@/views/operation/banner/iconManage/list'),
          meta: {
            title: 'icon管理',
            icon: '',
          },
        },{
          path: 'weappIconAdd',
          name: 'weappIconAdd',
          key: 'weappIconAdd',
          hidden:true,
          component: () => import('@/views/operation/banner/iconManage/edit'),
          meta: {
            title: '小程序icon添加',
            icon: '',
          },
        },{
          path: 'weappIconEdit',
          name: 'weappIconEdit',
          key: 'weappIconEdit',
          hidden:true,
          component: () => import('@/views/operation/banner/iconManage/edit'),
          meta: {
            title: '小程序icon编辑',
            icon: '',
          },
        }, {
          path: 'weappSubject',
          name: 'weappSubject',
          key: 'weappSubject',
          component: ()=>import('@/views/operation/goodsManage/mallSubject/list'),
          meta: {
            title: '专题管理',
            icon: '',
          },
        },{
          path: 'weappSubjectEdit',
          name: 'weappSubjectEdit',
          key: 'weappSubjectEdit',
          hidden:true,
          component: ()=>import('@/views/operation/goodsManage/mallSubject/edit'),
          meta: {
            title: '专题',
            icon: '',
          },
        }, {
          path: 'communityPoster',
          name: 'communityPoster',
          key: 'communityPoster',
          component: ()=>import('@/views/operation/goodsManage/communityPoster/list'),
          meta: {
            title: '社群海报管理',
            icon: '',
          },
        }, {
          path: 'communityPosterAdd',
          name: 'communityPosterAdd',
          key: 'communityPosterAdd',
          hidden:true,
          component: () => import('@/views/operation/goodsManage/communityPoster/add'),
          meta: {
            title: '添加海报',
            icon: '',
          },
        }
      ]
    },
    {
      path: 'mallPlateManage',
      name: 'mallPlateManage',
      key: 'mallPlateManage',
      component: Three,
      meta: {
        title: '商城板块管理',
        icon: ''
      },
      children: [],
    },{
      path: 'weappPlateManage',
      name: 'weappPlateManage',
      key: 'weappPlateManage',
      component: Three,
      meta: {
        title: '小程序板块管理',
        icon: ''
      },
      children: [],
    },
    {
      path: 'messageManange',
      name: 'messageManange',
      key: 'messageManange',
      component: Three,
      redirect: '/operation/messageManange/sysMessList',
      meta: {
        title: '推送消息',
        icon: '',
      },
      alwaysShow: true,
      children: [{
          path: 'sysMessList',
          name: 'sysMessList',
          key: 'sysMessList',
          component: () => import('@/views/operation/pushMessage/list'),
          meta: {
            title: '系统消息',
            messageType: '0'
          }
        },
        {
          path: 'sysMessAdd',
          name: 'sysMessAdd',
          key: 'sysMessAdd',
          component: () => import('@/views/operation/pushMessage/add'),
          hidden:true,
          meta: {
            // title: '系统消息处理',
            messageType: '0',
            page:'message'
          }
        },{
          path: 'pushMessList',
          name: 'pushMessList',
          key: 'pushMessList',
          component: () => import('@/views/operation/pushMessage/list'),
          meta: {
            title: '推送消息',
            messageType: '1'
          }
        },{
          path: 'pushMessAdd',
          name: 'pushMessAdd',
          key: 'pushMessAdd',
          hidden:true,
          component: () => import('@/views/operation/pushMessage/add'),
          meta: {
            // title: '推送消息查看/添加',
            messageType: '1',
            page:'message'
          }
        }],
    },
    {
      path: 'productSetting',
      name: 'productSetting',
      key: 'productSetting',
      component: Three,
      redirect: '/operation/productSetting/sysProductList',
      meta: {
        title: '套餐设置',
        icon: '',
      },
      alwaysShow: true,
      children: [{
          path: 'sysProductList',
          name: 'sysProductList',
          key: 'sysProductList',
          component: () => import('@/views/operation/productSetting/list'),
          meta: {
            title: '体验课套餐',
            productTypeId: '0'
          }
        }, {
          path: 'expProductList',
          name: 'expProductList',
          key: 'expProductList',
          component: () => import('@/views/operation/productSetting/list'),
          meta: {
            title: '系统课套餐',
            productTypeId: '1'
          }
        }]
    },
    {
      path: 'courseFeedback',
      name: 'courseFeedback',
      key: 'courseFeedback',
      component: Three,
      redirect: '/operation/courseFeedback/list',
      meta: {
        title: '课程反馈',
        icon: '',
      },
      alwaysShow: true,
      children: [
        {
          path: 'list',
          name: 'courseFeedbackList',
          key: 'courseFeedbackList',
          component: () => import('@/views/operation/courseFeedback/list'),
          meta: {
            title: '反馈列表',
          }
        }, {
          path: 'dispose',
          name: 'courseFeedbackDispose',
          key: 'courseFeedbackDispose',
          hidden: true,
          component: () => import('@/views/operation/courseFeedback/dispose'),
          meta: {
            title: '课程反馈处理',
          }
        }
      ]
    },
    {
      path: 'sysFeedback',
      name: 'sysFeedback',
      key: 'sysFeedback',
      component: Three,
      redirect: '/operation/sysFeedback/list',
      meta: {
        title: '系统反馈',
        icon: '',
      },
      alwaysShow: true,
      children: [
        {
          path: 'list',
          name: 'sysFeedbackList',
          key: 'sysFeedbackList',
          component: () => import('@/views/operation/sysFeedback/list'),
          meta: {
            title: '反馈列表',
            uploadTo: 'qqq'
          }
        }
      ]
    },

  ]
}

export default operation
